import { Notification } from 'element-ui'

export default ({ title, message, type = 'error', offset = 0, duration = 3000 }) => {
  if (Notification) {
    Notification.close()
  }
  Notification({
    title, 
    message,
    type,
    offset,
    duration,
    showClose: true
  })
}
